package com.example.demo.mapper;

import com.example.demo.entity.users;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Mapper
public interface usersMapper {
    //根据邮箱查询用户
    public users selectuser(String mailbox);
    //查询所有的用户
    public List<users> selsectuserAll();
    //更新等级
    public void updategrade(int grade,String mailbox);
    //个人资料修改
    public void updateusers(users users);
    //注册用户
    public void registeruser(users users);
    public users login(users users);
}
